
app.directive('demandpriorityitem', function() {
	return {
		//restrict: 'AE',
		templateUrl: './views/alineDP.html',
/*		scope: {
			DP.drmsDemandRequest.demandShowId: '=?',
			DP.weekStart: '=?',
			DP.weekEnd : '=?',
			DP.priority:'=?',
			DP.recruiter:'=?'
			
		},*/
	
		controller: ['$scope', '$state', 'slideCallbackService','editReloadService','$http', function($scope, $state,  slideCallbackService,editReloadService,$http) {
			editReloadService.getPromise.then(function(result) {
				console.log('compinent resolve' + result);
			}, function(result) {
				console.log('compinent reject' + result);
			}, function(result) {
				//console.log('compinent notify' + result);
				
				//console.log($scope.DP.id+"@@@@@@@@@@@@@@@@@@@@@@@@@@");
				
				$http.post("/DRMS/api/DrmsDemandRequestPriority/getDrmsDemandRequestPriorityById?dmdPrId="+$scope.DP.id).then(function(response){
				//	console.log(response.data+"###############################");
					$scope.DP = response.data;
					
				})
			});
		}]
			
	}
});
/*app.directive('demandRequestitem',function(){
	return{
		templateUrl:'./views/alineDR.hrml',
		controller: ['$scope', '$state', 'slideCallbackService','editReloadService','$http', function($scope, $state,  slideCallbackService,editReloadService,$http) {
			editReloadService.getPromise.then(function(result) {
				console.log('compinent resolve' + result);
			}, function(result) {
				console.log('compinent reject' + result);
			}, function(result) {
				//console.log('compinent notify' + result);
				
				//console.log($scope.DP.id+"@@@@@@@@@@@@@@@@@@@@@@@@@@");
				
				$http.post("/DRMS/api/DrmsDemandRequestPriority/getDrmsDemandRequestPriorityById?dmdPrId="+$scope.DP.id).then(function(response){
				//	console.log(response.data+"###############################");
					$scope.DP = response.data;
					
				})
			});
		}]
		
		
	}
})*/